package person.xjl.spring;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Getter@Setter@ToString
//2号车
@Order(2)
@Component("mary")
public class BMW implements Car{
    @Value("bmw")
    private String type;
    @Value("500")
    private int maxSpeed;
}
